package org.hako.recite.word.review;

import org.hako.recite.word.model.Word;
import org.hako.recite.word.parser.WordList;

/**
 * Provider of words to review base on {@link WordList}.
 * 
 * @since 0.4.10
 * @author <a href="mailto:xnnyygn@gmail.com">xnnyygn</a>
 */
public class WordListReviewWordsProvider implements ReviewWordsProvider {

	private WordList wordList;

	/**
	 * Create
	 * 
	 * @param wordList
	 */
	public WordListReviewWordsProvider(WordList wordList) {
		super();
		this.wordList = wordList;
	}

	@Override
	public int getCount() {
		return wordList.getWordCount();
	}

	@Override
	public Word get(int index) {
		return wordList.getWord(index);
	}

	@Override
	public String[] getColumnTitles() {
		return wordList.getColumnTitles();
	}

}
